Ext.define('Demo.view.ViewUserInfo', {
    extend: 'Ext.grid.Panel',
    alias: 'widget.ViewUserInfo',
    title:'用户信息',
    store:'UserInfoStore',
    tools:[{
        type:'refresh',
        tooltip: 'Refresh form Data',
        // hidden:true,
        handler: function(event, toolEl, panel){
            alert("click");
        }
    }],
    columns:[
             { text: 'Name',  dataIndex: 'name' },
             { text: 'Email', dataIndex: 'email', flex: 1 },
             { text: 'Phone', dataIndex: 'phone' }
         ],
    width:500,
    height:300,
    renderTo:Ext.getBody()
});
